﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Entities
{
    /// <summary>
    /// 仓库设置表
    /// </summary>
    [Table("PSS_Warehouses")]
    public class Warehouse: FullAuditedEntity<Guid>, IMustHaveTenant
    {
        public const int MaxNameLength = 50;
        public const int MaxCodeLength = 50;
        public const int MaxRemarkLength = 500;

        public int TenantId { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        [Required]//字段必填
        [MaxLength(MaxNameLength)]
        public virtual string WarehouseName { get; set; }
        /// <summary>
        /// 仓库代码
        /// </summary>
        [MaxLength(MaxCodeLength)]
        public virtual string WarehouseCode { get; set; }
        /// <summary>
        /// 仓库类型 1：总仓库  2：分仓库
        /// </summary>
        public virtual int WarehouseType { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(MaxRemarkLength)]
        public virtual string Remark { get; set; }
    }
}
